package com.yc.spring.ctr;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yc.jpa.service.JpaDemoService;

@Controller
@RequestMapping("/jpa")
public class JpaController {
	
	@Autowired
    private JpaDemoService jpaDemoService;

	@ResponseBody
	@RequestMapping(value="/test1", method=RequestMethod.GET)
	public void testCon1() {
		
		jpaDemoService.testJpa();
		
	}
}
